home *** CD-ROM | disk | FTP | other *** search
- function cinnamons()
- {
- cinnamon.onPress = function()
- {
- ins2._visible = false;
- this.swapDepths(depths);
- startDrag(this,0);
- };
- cinnamon.onRelease = function()
- {
- if(bowl1Hit.hitTest(this))
- {
- stopDrag();
- this._x = -164.7;
- this._y = 111;
- depths++;
- this.gotoAndPlay(2);
- this.enabled = false;
- Nutmeg();
- }
- };
- }
- function saltdrag()
- {
- salt.onPress = function()
- {
- ins25._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- salt.onRelease = function()
- {
- if(this.hitTest(bowl1Hit))
- {
- this.stopDrag();
- this.gotoAndPlay(2);
- this._x = -375.1;
- this._y = -137.8;
- this.enabled = false;
- spoon();
- }
- };
- }
- function ginger()
- {
- ginerspoon.onPress = function()
- {
- ins4._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- ginerspoon.onRelease = function()
- {
- if(ginerspoon.hitTest(bowl1Hit))
- {
- stopDrag();
- this._x = -149.6;
- this._y = 124.1;
- this.gotoAndPlay(2);
- this.enabled = false;
- saltdrag();
- }
- };
- }
- function spoon()
- {
- spoon1.onPress = function()
- {
- ins5._visible = false;
- startDrag(this,0);
- this.swapDepths(depths++);
- };
- spoon1.onRelease = function()
- {
- if(this.hitTest(bowl1Hit))
- {
- this._visible = false;
- salt.gotoAndStop(26);
- bakingsoda.gotoAndStop(24);
- cinnamon.gotoAndStop(9);
- nutSpoon.gotoAndStop(11);
- ginerspoon.gotoAndStop(11);
- bowl.mixing.gotoAndPlay(2);
- vegetables();
- }
- };
- }
- function vegetables()
- {
- vegetableoil.onPress = function()
- {
- ins6._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- vegetableoil.onRelease = function()
- {
- if(this.hitTest(bowl2Hit))
- {
- stopDrag();
- this.gotoAndPlay(2);
- this.enabled = false;
- this._x = 104.4;
- this._y = 131;
- sugar();
- }
- };
- }
- function sugar()
- {
- sugarbox.onPress = function()
- {
- ins7._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- sugarbox.onRelease = function()
- {
- if(this.hitTest(bowl2Hit))
- {
- this.stopDrag();
- this.gotoAndPlay(2);
- this._x = -93.4;
- this._y = 188.6;
- this.enabled = false;
- beatenegg();
- }
- };
- }
- function beatenegg()
- {
- egg.onPress = function()
- {
- this.startDrag();
- this.swapDepths(depths++);
- };
- egg.onRelease = function()
- {
- if(this.hitTest(bowl2Hit))
- {
- ins8._visible = false;
- this.stopDrag();
- this.gotoAndPlay(2);
- this.enabled = false;
- this._x = -54.6;
- this._y = 145.6;
- essence();
- }
- };
- }
- function essence()
- {
- vennila.onPress = function()
- {
- ins9._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- vennila.onRelease = function()
- {
- if(this.hitTest(bowl2Hit))
- {
- this.stopDrag();
- this.gotoAndPlay(2);
- this.enabled = false;
- this._x = -246;
- this._y = 461.2;
- dragbowl();
- }
- };
- }
- function dragbowl()
- {
- bowl2.onPress = function()
- {
- ins10._visible = false;
- bowlsample._visible = false;
- vegetableoil.gotoAndStop(21);
- sugarbox.gotoAndStop(19);
- vennila.gotoAndStop(19);
- egg.gotoAndStop(13);
- this.startDrag();
- this.swapDepths(depths++);
- };
- bowl2.onRelease = function()
- {
- if(this.hitTest(bowl1Hit))
- {
- stopDrag();
- this.gotoAndPlay(2);
- this._x = -180.5;
- this._y = 110.7;
- this.enabled = false;
- pumkin();
- }
- };
- }
- function pumkin()
- {
- cannedpumkin.onPress = function()
- {
- ins12._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- cannedpumkin.onRelease = function()
- {
- if(this.hitTest(bowl2Hit))
- {
- stopDrag();
- this._x = -148.9;
- this._y = 166.8;
- this.gotoAndPlay(2);
- this.enabled = false;
- spoon3._visible = true;
- }
- };
- }
- function spoondrag()
- {
- spoon5.onPress = function()
- {
- ins28._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- spoon5.onRelease = function()
- {
- if(this.hitTest(tempghee))
- {
- this._visible = false;
- bowlsample._visible = false;
- flourmix.gotoAndStop(10);
- tempghee._visible = false;
- ghee._visible = true;
- ghee.gotoAndPlay(2);
- lemon();
- }
- };
- }
- function lemon()
- {
- lemonjuice.onPress = function()
- {
- ins34._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- lemonjuice.onRelease = function()
- {
- if(this.hitTest(bowl2Hit))
- {
- stopDrag();
- this.gotoAndPlay(2);
- this._x = -301.7;
- this._y = 176.2;
- this.enabled = false;
- yellowcolors();
- }
- };
- }
- function spoons()
- {
- spoon6.onPress = function()
- {
- ins13._visible = false;
- this.startDrag();
- trace("hits:");
- this.swapDepths(depths++);
- };
- spoon6.onRelease = function()
- {
- if(this.hitTest(bowl2Hit))
- {
- this.stopDrag();
- this._visible = false;
- ghee._visible = false;
- tempghee._visible = true;
- lemonjuice.gotoAndStop(14);
- yellowcolor.gotoAndStop(26);
- redcolor.gotoAndStop(22);
- bowl5._visible = true;
- bowl5.gotoAndPlay(2);
- this.enabled = false;
- knife1.enabled = true;
- }
- };
- }
- function yellowcolors()
- {
- yellowcolor.onPress = function()
- {
- ins30._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- yellowcolor.onRelease = function()
- {
- if(this.hitTest(bowl2Hit))
- {
- stopDrag();
- this.gotoAndPlay(2);
- this._x = 50.3;
- this._y = -92.6;
- this.enabled = false;
- redcolors();
- }
- };
- }
- function redcolors()
- {
- redcolor.onPress = function()
- {
- ins31._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- redcolor.onRelease = function()
- {
- if(this.hitTest(bowl2Hit))
- {
- stopDrag();
- this.gotoAndPlay(2);
- this._x = 17.6;
- this._y = -97;
- this.enabled = false;
- spoons();
- }
- };
- }
- oven1._visible = false;
- stop();
- var depths = 10;
- bowlfull1._visible = false;
- finalcakes._visible = false;
- nutSpoon._visible = false;
- spoon2._visible = false;
- spoon3._visible = false;
- spoon5._visible = false;
- spoon6._visible = false;
- flourmix.enabled = false;
- knife.enabled = false;
- knife1.enabled = false;
- spoon4._visible = false;
- bowl2._visible = false;
- bowl5._visible = false;
- cookie._visible = false;
- var countval = 0;
- nuggets._visible = false;
- f1.enabled = false;
- f2.enabled = false;
- duplicatesoda._visible = false;
- s = 2;
- while(s <= 6)
- {
- eval("bowlfull" + s)._visible = false;
- s++;
- }
- nuggets._visible = false;
- ghee._visible = false;
- mixinganimation._visible = false;
- pumkinanimation._visible = false;
- spoonanimation._visible = false;
- allmix._visible = false;
- cookiesheet._visible = false;
- tray._visible = false;
- nuggetsanimation.enabled = false;
- pumkinanimation.swapDepths(800);
- m = 2;
- while(m <= 36)
- {
- eval("ins" + m)._visible = false;
- m++;
- }
- bakingsoda.onPress = function()
- {
- ins1._visible = false;
- this.swapDepths(depths);
- startDrag(this,0);
- };
- bakingsoda.onRelease = function()
- {
- if(bowl1Hit.hitTest(this))
- {
- stopDrag();
- this._x = -205;
- this._y = 110;
- depths++;
- this.gotoAndPlay(2);
- this.enabled = false;
- cinnamons();
- }
- };
- Nutmeg = function()
- {
- nutmeg.onPress = function()
- {
- ins3._visible = false;
- this._x = -140.2;
- this._y = -70.6;
- nutSpoon._visible = true;
- NutSpoon();
- };
- };
- NutSpoon = function()
- {
- nutSpoon.onPress = function()
- {
- startDrag(this,0);
- this.swapDepths(depths);
- };
- nutSpoon.onRelease = function()
- {
- if(bowl1Hit.hitTest(this))
- {
- stopDrag();
- this._x = -149.6;
- this._y = 124.1;
- depths++;
- this.gotoAndPlay(2);
- this.enabled = false;
- ginger();
- }
- };
- };
- tray.onPress = function()
- {
- this.startDrag();
- if(this.hitTest(oven))
- {
- oven.gotoAndPlay(2);
- this._visible = false;
- }
- };
- spoon2.onPress = function()
- {
- ins11._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- spoon2.onRelease = function()
- {
- if(this.hitTest(bowl1Hit))
- {
- spoon2._visible = false;
- bowl2.gotoAndStop(13);
- spoonanimation._visible = true;
- spoonanimation.gotoAndPlay(2);
- }
- };
- spoon3.onPress = function()
- {
- ins13._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- spoon3.onRelease = function()
- {
- if(this.hitTest(bowl2Hit))
- {
- this._visible = false;
- pumkinanimation._visible = true;
- pumkinanimation.gotoAndPlay(2);
- }
- };
- mixinganimation.onPress = function()
- {
- ins14._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- mixinganimation.onRelease = function()
- {
- if(this.hitTest(bowl1Hit))
- {
- stopDrag();
- this.gotoAndPlay(2);
- this.enabled = false;
- this._x = -9.1;
- this._y = -67.8;
- }
- };
- spoon4.onPress = function()
- {
- ins15._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- spoon4.onRelease = function()
- {
- if(this.hitTest(bowl1Hit))
- {
- stopDrag();
- allmix._visible = true;
- gingerspoon.gotoAndStop(12);
- allmix.gotoAndPlay(2);
- this._visible = false;
- }
- };
- knife.onPress = function()
- {
- cookiesheet.enabled = true;
- ins23._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- if(this.hitTest(cookiesheet))
- {
- stopDrag();
- this.gotoAndPlay(2);
- this._x = -411;
- this._y = -96.2;
- this.enabled = false;
- }
- };
- bowlfull1.onPress = function()
- {
- ins16._visible = false;
- this.startDrag();
- allmix._visible = false;
- bowl._visible = false;
- this.swapDepths(depths++);
- };
- bowlfull1.onRelease = function()
- {
- if(this.hitTest(hit1))
- {
- this.stopDrag();
- this._x = -21.1;
- this._y = 189.7;
- this.gotoAndPlay(2);
- this.enabled = false;
- }
- };
- bowlfull2.onPress = function()
- {
- ins16._visible = false;
- this.startDrag();
- allmix._visible = false;
- bowl._visible = false;
- this.swapDepths(depths++);
- };
- bowlfull2.onRelease = function()
- {
- if(this.hitTest(hit2))
- {
- this.stopDrag();
- this._x = -21.1;
- this._y = 189.7;
- this.gotoAndPlay(2);
- this.enabled = false;
- }
- };
- bowlfull3.onPress = function()
- {
- ins16._visible = false;
- this.startDrag();
- allmix._visible = false;
- bowl._visible = false;
- this.swapDepths(depths++);
- };
- bowlfull3.onRelease = function()
- {
- if(this.hitTest(hit3))
- {
- this.stopDrag();
- this._x = -21.1;
- this._y = 189.7;
- this.gotoAndPlay(2);
- this.enabled = false;
- }
- };
- bowlfull4.onPress = function()
- {
- ins16._visible = false;
- this.startDrag();
- allmix._visible = false;
- bowl._visible = false;
- this.swapDepths(depths++);
- };
- bowlfull4.onRelease = function()
- {
- if(this.hitTest(hit4))
- {
- this.stopDrag();
- this._x = -21.1;
- this._y = 189.7;
- this.gotoAndPlay(2);
- this.enabled = false;
- }
- };
- bowlfull4.onRelease = function()
- {
- if(this.hitTest(hit4))
- {
- this.stopDrag();
- this._x = -21.1;
- this._y = 189.7;
- this.gotoAndPlay(2);
- this.enabled = false;
- }
- };
- bowlfull5.onPress = function()
- {
- ins16._visible = false;
- this.startDrag();
- allmix._visible = false;
- bowl._visible = false;
- this.swapDepths(depths++);
- };
- bowlfull5.onRelease = function()
- {
- if(this.hitTest(hit5))
- {
- this.stopDrag();
- this._x = -21.1;
- this._y = 189.7;
- this.gotoAndPlay(2);
- this.enabled = false;
- }
- };
- bowlfull6.onPress = function()
- {
- ins16._visible = false;
- this.startDrag();
- allmix._visible = false;
- bowl._visible = false;
- this.swapDepths(depths++);
- };
- bowlfull6.onRelease = function()
- {
- if(this.hitTest(hit6))
- {
- this.stopDrag();
- this._x = -21.1;
- this._y = 189.7;
- this.gotoAndPlay(2);
- this.enabled = false;
- }
- };
- flourmix.onPress = function()
- {
- ins20._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- flourmix.onRelease = function()
- {
- if(this.hitTest(bowlsample))
- {
- this.gotoAndPlay(2);
- this.stopDrag();
- this._x = -247.8;
- this._y = 178.7;
- this.enabled = false;
- spoondrag();
- }
- };
- cookiesheet.onPress = function()
- {
- ins24._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- if(this.hitTest(oven1))
- {
- oven1.gotoAndPlay(2);
- this._visible = false;
- }
- };
- knife1.onPress = function()
- {
- ins29._visible = false;
- this.startDrag();
- this.swapDepths(depths++);
- };
- knife1.onRelease = function()
- {
- if(this.hitTest(bowl2Hit))
- {
- this.stopDrag();
- this._visible = false;
- finalcakes.gotoAndPlay(2);
- }
- };
- nuggetsanimation.onPress = function()
- {
- ins35._visible = false;
- this.gotoAndStop(2);
- nuggets._visible = true;
- };
- nuggets.onPress = function()
- {
- this.startDrag();
- this.swapDepths(1060);
- if(this.hitTest(hit))
- {
- stopDrag();
- this.gotoAndPlay(2);
- this.enabled = false;
- this._x = -53.8;
- this._y = 71.6;
- }
- };
- f1.onPress = function()
- {
- ins33._visible = false;
- this.swapDepths(1065);
- this.startDrag();
- };
- f1.onRelease = function()
- {
- stopDrag();
- if(this.hitTest(hit) || this.hitTest(bowlfruit))
- {
- trace("hit");
- stopDrag();
- ins33._visible = true;
- f2.enabled = true;
- finalcakes.enabled = true;
- }
- };
- f2.onPress = function()
- {
- ins33._visible = false;
- f2.swapDepths(1062);
- this.startDrag();
- };
- f2.onRelease = function()
- {
- stopDrag();
- if(this.hitTest(hit) || this.hitTest(bowlfruit))
- {
- countval++;
- stopDrag();
- finalcakes.enabled = true;
- ins36._visible = true;
- ins36.swapDepths(1300);
- }
- };
-